
import request from '@/utils/request'

// 获取设备列表
export function listEquipment(query) {
  return request({
    url: '/EquipmentSimulationController/getEquipmetVos',
    method: 'get',
    params: query
  })
}

/**
 * 获取左侧工具栏设备分类-厂商-设备
 * @param {*} query 
 * @returns 
 */
export function getEquipmetVos(query) {
  return request({
    url: '/EquipmentSimulationController/getEquipmetVos',
    method: 'get',
    params: query
  })
}


//获取列表
export function getModelByPage(query) {
  return request({
    url: '/ManufactorController/getModelByPage',
    method: 'get',
    params: query
  })
}
//查详情
export function getModelById(query) {
  return request({
    url: '/ManufactorController/getModelById',
    method: 'get',
    params: query
  })
}

//保存
export function saveModel(data) {
  return request({
    url: '/ManufactorController/saveModel',
    method: 'post',
    data: data
  })
}

//修改
export function updateMpdel(data) {
  return request({
    url: '/ManufactorController/updateMpdel',
    method: 'post',
    data: data
  })
}

//删除
export function delModelById(data) {
  return request({
    url: '/ManufactorController/delModelById' ,
    method: 'delete',
    params: data
  })
}

//上传
export function updateImg(data) {
  return request({
    url: '/common/upload',
    method: 'post',
    data: data,
    uploadFile:true
  })
}
